Commit 65e22788 by jiangyun

修改

parent 194c5fc9
......@@ -134,7 +134,7 @@ public class SecurityConfig extends WebSecurityConfigurerAdapter
requests.antMatchers("/login", "/register", "/captchaImage").permitAll()
// 静态资源,可匿名访问
.antMatchers(HttpMethod.GET, "/", "/*.html", "/**/*.html", "/**/*.css", "/**/*.js", "/profile/**").permitAll()
.antMatchers("/swagger-ui.html", "/swagger-resources/**", "/webjars/**", "/*/api-docs", "/druid/**", "/comsj/**").permitAll()
.antMatchers("/webjars/**", "/*/api-docs", "/druid/**", "/comsj/**").permitAll()
// 除上面外的所有请求全部需要鉴权认证
.anyRequest().authenticated();
})
......@@ -167,10 +167,10 @@ public class SecurityConfig extends WebSecurityConfigurerAdapter
.antMatchers("/profile/**").anonymous()
.antMatchers("/common/download**").anonymous()
.antMatchers("/common/download/resource**").anonymous()
.antMatchers("/swagger-ui.html").anonymous()
.antMatchers("/swagger-resources/**").anonymous()
// .antMatchers("/swagger-ui.html").anonymous()
// .antMatchers("/swagger-resources/**").anonymous()
.antMatchers("/webjars/**").anonymous()
.antMatchers("/*/api-docs").anonymous()
// .antMatchers("/*/api-docs").anonymous()
.antMatchers("/druid/**").anonymous()
.antMatchers("/websocket/**").anonymous()
.antMatchers("/magic/web/**").anonymous()
......
package com.zjsgfa.project.zjsgfa.controller;
import java.util.List;
import java.util.stream.Collectors;
import javax.servlet.http.HttpServletResponse;
import com.zjsgfa.common.utils.SecurityUtils;
import org.activiti.engine.TaskService;
import org.activiti.engine.impl.persistence.entity.TaskEntityImpl;
import org.activiti.engine.task.Task;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.util.CollectionUtils;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
......@@ -36,6 +41,9 @@ public class BizTodoItemController extends BaseController
@Autowired
private IBizTodoItemService bizTodoItemService;
@Autowired
private TaskService taskService;
/**
* 查询待办事项列表
*/
......@@ -60,6 +68,31 @@ public class BizTodoItemController extends BaseController
bizTodoItem.setTodoUserId(SecurityUtils.getUsername());
bizTodoItem.setOrderBy("handle_time");
List<BizTodoItem> list = bizTodoItemService.selectBizTodoItemList(bizTodoItem);
List<Task> taskList_all = taskService.createTaskQuery().list();
for(BizTodoItem item :list){
// if(item.getNodeName().equals("开始节点")){
List<Task> taskList = taskList_all.stream().filter(d -> item.getInstanceId().equals(d.getProcessInstanceId()) )
.collect(Collectors.toList());
if (!CollectionUtils.isEmpty(taskList)) {
TaskEntityImpl task = (TaskEntityImpl) taskList.get(0);
// item.setTaskId(task.getId());
if (task.getSuspensionState() == 2) {
item.setDqtaskName("已挂起");
} else {
item.setDqtaskName(task.getName());
}
} else {
// 已办结或者已撤销
item.setDqtaskName("已结束");
}
// }
}
return getDataTable(list);
}
......
......@@ -252,7 +252,7 @@ public class DjjcLcController
// 下一节点审核节点 处理人为根据角色code取多人 一人处理即可通过
if (GC_AQSP.equals(act_id)) {//当前节点 安全审批
List<String> assignee = userService.selectUserLoginNamesByRoleKeyDept(secondaryUnit,GC_AQSP);
List<String> assignee = userService.selectUserLoginNamesByRoleKeyDept(secondaryUnit,GC_ZZSP);
variables.put(paramName_audit_user, assignee);
}else if (GC_ZZSP.equals(act_id)) {//当前节点 站长审批
......@@ -261,7 +261,7 @@ public class DjjcLcController
tmpProject.setProcessStatus("通过");
sjDjjcMapper.updateSjDjjcById(tmpProject);
}else {
List<String> assignee = userService.selectUserLoginNamesByRoleKeyDept(secondaryUnit,GC_ZZSP);
List<String> assignee = userService.selectUserLoginNamesByRoleKeyDept(secondaryUnit,GC_ZJSP);
variables.put(paramName_audit_user, assignee);
}
}else if (GC_ZJSP.equals(act_id)) {//当前节点 站长审批
......@@ -271,7 +271,7 @@ public class DjjcLcController
tmpProject.setProcessStatus("通过");
sjDjjcMapper.updateSjDjjcById(tmpProject);
}else {
List<String> assignee = userService.selectUserLoginNamesByRoleKeyDept(secondaryUnit,GC_ZJSP);
List<String> assignee = userService.selectUserLoginNamesByRoleKeyDept(secondaryUnit,GC_SXZJ);
variables.put(paramName_audit_user, assignee);
}
}else if (GC_SXZJ.equals(act_id)) {//当前节点 站长审批
......@@ -281,7 +281,7 @@ public class DjjcLcController
tmpProject.setProcessStatus("通过");
sjDjjcMapper.updateSjDjjcById(tmpProject);
}else {
List<String> assignee = userService.selectUserLoginNamesByRoleKeyDept(secondaryUnit,GC_SXZJ);
List<String> assignee = userService.selectUserLoginNamesByRoleKeyDept(secondaryUnit,GC_FGLD);
variables.put(paramName_audit_user, assignee);
}
}else if (GC_FGLD.equals(act_id)) {//当前节点 站长审批
......@@ -418,7 +418,7 @@ public class DjjcLcController
// 下一节点审核节点 处理人为根据角色code取多人 一人处理即可通过
if (ZJY_AQSP.equals(act_id)) {//当前节点 安全审批
List<String> assignee = userService.selectUserLoginNamesByRoleKeyDept(secondaryUnit,ZJY_AQSP);
List<String> assignee = userService.selectUserLoginNamesByRoleKeyDept(secondaryUnit,ZJY_ZZSP);
variables.put(paramName_audit_user, assignee);
}else if (ZJY_ZZSP.equals(act_id)) {//当前节点 站长审批
......@@ -437,7 +437,7 @@ public class DjjcLcController
tmpProject.setZjyprocessStatus("通过");
sjDjjcMapper.updateSjDjjcById(tmpProject);
}else {
List<String> assignee = userService.selectUserLoginNamesByRoleKeyDept(secondaryUnit,ZJY_ZJSP);
List<String> assignee = userService.selectUserLoginNamesByRoleKeyDept(secondaryUnit,ZJY_SXZJ);
variables.put(paramName_audit_user, assignee);
}
}else if (ZJY_SXZJ.equals(act_id)) {//当前节点 站长审批
......@@ -447,7 +447,7 @@ public class DjjcLcController
tmpProject.setZjyprocessStatus("通过");
sjDjjcMapper.updateSjDjjcById(tmpProject);
}else {
List<String> assignee = userService.selectUserLoginNamesByRoleKeyDept(secondaryUnit,ZJY_SXZJ);
List<String> assignee = userService.selectUserLoginNamesByRoleKeyDept(secondaryUnit,ZJY_FGLD);
variables.put(paramName_audit_user, assignee);
}
}else if (ZJY_FGLD.equals(act_id)) {//当前节点 站长审批
......@@ -512,6 +512,32 @@ public class DjjcLcController
}
@PostMapping("/tjch")
public AjaxResult tjch(@RequestBody SjDjjc sjDjjc){
String chtype=sjDjjc.getChtype();
String instanceId=sjDjjc.getInstanceId();
if("钻井液方案审核".equals(chtype)){
SjDjjc item = sjDjjcMapper.selectSjDjjcByinstanceIdZjy(instanceId);
sjDjjcMapper.updateSjDjjcLcZjy(item.getId());
}else if("工程方案审核".equals(chtype)){
SjDjjc item = sjDjjcMapper.selectSjDjjcByinstanceId(instanceId);
sjDjjcMapper.updateSjDjjcLc(item.getId());
}
//删除流程
sjDjjcMapper.deleteLc(instanceId);
return AjaxResult.success("撤回成功");
}
/**
* 撤回任务
*
......@@ -750,7 +776,7 @@ public class DjjcLcController
Long secondaryUnit = getSecondaryUnit(applyUserDeptId, sysDept.getAncestors());
// 设置下一节点处理人
Map<String, Object> variables = new HashMap<>();
List<String> assignee = userService.selectUserLoginNamesByRoleKeyDept(secondaryUnit, GC_AQSP);
List<String> assignee = userService.selectUserLoginNamesByRoleKeyDept(secondaryUnit, ZJY_AQSP);
// 下一节点审核节点 处理人为根据角色code取多人 一人处理即可通过
variables.put(paramName_audit_user, assignee); // 设置下一节点审核人 设置userId
......
......@@ -1270,6 +1270,9 @@ public class SjDjjcController extends BaseController {
}
String value = dataFormatter.formatCellValue(xmRow.getCell(k + ksl));
xm=xm.trim();
xm=xm.replaceAll(" ","");
String fieldName = DrillingFluidConstant.ITEM_FIELD_MAP.get(xm);
if (StringUtils.isEmpty(fieldName)) {
continue;
......@@ -1308,6 +1311,15 @@ public class SjDjjcController extends BaseController {
case "sxnd":
fdxnb.setSxnd(value);
break;
case "hthpss":
fdxnb.setHthpss(value);
break;
case "hthpnb":
fdxnb.setHthpnb(value);
break;
case "mbt":
fdxnb.setMbt(value);
break;
// 其他字段的 case 继续补充
default:
break;
......
......@@ -89,4 +89,7 @@ public class BizTodoItem extends BaseEntity
private String orderBy;
//当前任务名称
private String dqtaskName;
}
......@@ -260,6 +260,9 @@ public class SjDjjc extends ProcessBaseEntity
@Excel(name = "钻井液申请时间 流程", width = 30, dateFormat = "yyyy-MM-dd")
private Date zjyapplyTime;
//撤回类型
private String chtype;
......
......@@ -80,174 +80,19 @@ public class SjFdsgcsZjyFdxnb extends BaseEntity
private Double firstNumber;
private List<SjFdsgcsZjyFdxnb> list;
public void setId(Long id)
{
this.id = id;
}
public Long getId()
{
return id;
}
public void setJh(String jh)
{
this.jh = jh;
}
public String getJh()
{
return jh;
}
public void setKc(String kc)
{
this.kc = kc;
}
public String getKc()
{
return kc;
}
public void setJd(String jd)
{
this.jd = jd;
}
public String getJd()
{
return jd;
}
public void setMd(String md)
{
this.md = md;
}
public String getMd()
{
return md;
}
public void setMsldnd(String msldnd)
{
this.msldnd = msldnd;
}
public String getMsldnd()
{
return msldnd;
}
public void setApilsl(String apilsl)
{
this.apilsl = apilsl;
}
public String getApilsl()
{
return apilsl;
}
public void setApinb(String apinb)
{
this.apinb = apinb;
}
public String getApinb()
{
return apinb;
}
public void setJql(String jql)
{
this.jql = jql;
}
public String getJql()
{
return jql;
}
public void setPh(String ph)
{
this.ph = ph;
}
public String getPh()
{
return ph;
}
public void setHsl(String hsl)
{
this.hsl = hsl;
}
public String getHsl()
{
return hsl;
}
public void setZgh(String zgh)
{
this.zgh = zgh;
}
public String getZgh()
{
return zgh;
}
public void setMzxs(String mzxs)
{
this.mzxs = mzxs;
}
public String getMzxs()
{
return mzxs;
}
public void setDql(String dql)
{
this.dql = dql;
}
public String getDql()
{
return dql;
}
public void setSxnd(String sxnd)
{
this.sxnd = sxnd;
}
public String getSxnd()
{
return sxnd;
}
@Override
public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
.append("id", getId())
.append("jh", getJh())
.append("kc", getKc())
.append("jd", getJd())
.append("md", getMd())
.append("msldnd", getMsldnd())
.append("apilsl", getApilsl())
.append("apinb", getApinb())
.append("jql", getJql())
.append("ph", getPh())
.append("hsl", getHsl())
.append("zgh", getZgh())
.append("mzxs", getMzxs())
.append("dql", getDql())
.append("sxnd", getSxnd())
.toString();
}
/** HTHP失水 */
@Excel(name = "HTHP失水")
private String hthpss;
/** HTHP泥饼 */
@Excel(name = "HTHP泥饼")
private String hthpnb;
/** MBT */
@Excel(name = "MBT")
private String mbt;
}
......@@ -101,198 +101,5 @@ public class SjSggyZjyFdxnb extends BaseEntity
private Date createdTime;
private Double firstNumber;
public void setId(Long id)
{
this.id = id;
}
public Long getId()
{
return id;
}
public void setJh(String jh)
{
this.jh = jh;
}
public String getJh()
{
return jh;
}
public void setJd(String jd)
{
this.jd = jd;
}
public String getJd()
{
return jd;
}
public void setMd(String md)
{
this.md = md;
}
public String getMd()
{
return md;
}
public void setMsldnd(String msldnd)
{
this.msldnd = msldnd;
}
public String getMsldnd()
{
return msldnd;
}
public void setApilsl(String apilsl)
{
this.apilsl = apilsl;
}
public String getApilsl()
{
return apilsl;
}
public void setApinb(String apinb)
{
this.apinb = apinb;
}
public String getApinb()
{
return apinb;
}
public void setJql(String jql)
{
this.jql = jql;
}
public String getJql()
{
return jql;
}
public void setPh(String ph)
{
this.ph = ph;
}
public String getPh()
{
return ph;
}
public void setHsl(String hsl)
{
this.hsl = hsl;
}
public String getHsl()
{
return hsl;
}
public void setZgh(String zgh)
{
this.zgh = zgh;
}
public String getZgh()
{
return zgh;
}
public void setMzxs(String mzxs)
{
this.mzxs = mzxs;
}
public String getMzxs()
{
return mzxs;
}
public void setDql(String dql)
{
this.dql = dql;
}
public String getDql()
{
return dql;
}
public void setSxnd(String sxnd)
{
this.sxnd = sxnd;
}
public String getSxnd()
{
return sxnd;
}
public void setBz(String bz)
{
this.bz = bz;
}
public String getBz()
{
return bz;
}
public void setCreatedBy(String createdBy)
{
this.createdBy = createdBy;
}
public String getCreatedBy()
{
return createdBy;
}
public void setCreatedTime(Date createdTime)
{
this.createdTime = createdTime;
}
public Date getCreatedTime()
{
return createdTime;
}
@Override
public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
.append("id", getId())
.append("jh", getJh())
.append("jd", getJd())
.append("md", getMd())
.append("msldnd", getMsldnd())
.append("apilsl", getApilsl())
.append("apinb", getApinb())
.append("jql", getJql())
.append("ph", getPh())
.append("hsl", getHsl())
.append("zgh", getZgh())
.append("mzxs", getMzxs())
.append("dql", getDql())
.append("sxnd", getSxnd())
.append("bz", getBz())
.append("createdBy", getCreatedBy())
.append("createdTime", getCreatedTime())
.append("updateBy", getUpdateBy())
.append("updateTime", getUpdateTime())
.toString();
}
}
......@@ -89,4 +89,17 @@ public class SjZjyFdxnb extends BaseEntity
private Double firstNumber;
/** HTHP失水 */
@Excel(name = "HTHP失水")
private String hthpss;
/** HTHP泥饼 */
@Excel(name = "HTHP泥饼")
private String hthpnb;
/** MBT */
@Excel(name = "MBT")
private String mbt;
}
......@@ -8,15 +8,18 @@ public class DrillingFluidConstant {
static {
ITEM_FIELD_MAP.put("密度(g/cm3)", "md");
ITEM_FIELD_MAP.put("马氏漏斗黏度(s)", "msldnd");
ITEM_FIELD_MAP.put("API 滤失量(ml)", "apilsl");
ITEM_FIELD_MAP.put("API 泥饼(mm)", "apinb");
ITEM_FIELD_MAP.put("API滤失量(ml)", "apilsl");
ITEM_FIELD_MAP.put("API泥饼(mm)", "apinb");
ITEM_FIELD_MAP.put("静切力(Pa)", "jql");
ITEM_FIELD_MAP.put("pH值", "ph");
ITEM_FIELD_MAP.put("含砂量(%)", "hsl");
ITEM_FIELD_MAP.put("总固含(%)", "zgh");
ITEM_FIELD_MAP.put("摩阻系数", "mzxs");
ITEM_FIELD_MAP.put("动切力(Pa)", "dql");
ITEM_FIELD_MAP.put("塑性黏度(mPa ·s)", "sxnd");
ITEM_FIELD_MAP.put("塑性黏度(mPa·s)", "sxnd");
ITEM_FIELD_MAP.put("HTHP滤失量(ml)", "hthpss");
ITEM_FIELD_MAP.put("HTHP滤饼厚度(mm)", "hthpnb");
ITEM_FIELD_MAP.put("MBT", "mbt");
// 若有其他固定项目,继续在此添加映射
}
}
......@@ -74,4 +74,10 @@ public interface SjDjjcMapper
List<SjDjjc> getGcList(SjDjjc sjDjjc);
int updateSjDjjcLcZjy(Long id);
int updateSjDjjcLc(Long id);
int deleteLc(String instanceId);
}
......@@ -37,15 +37,18 @@ public class JcxxHseServiceImpl implements IJcxxHseService
{
JcxxHse jcxxHse = jcxxHseMapper.selectJcxxHseById(id);
// 压缩富文本中的图片,设置质量和最大尺寸
String compressedContent = RichTextProcessor.processRichText(
jcxxHse.getHse(), // 你的富文本字段
0.7f, // 质量 0.0-1.0
800, // 最大宽度
600 // 最大高度
);
// if(StringUtils.isNotEmpty(jcxxHse.getHse())){
// String compressedContent = RichTextProcessor.processRichText(
// jcxxHse.getHse(), // 你的富文本字段
// 0.7f, // 质量 0.0-1.0
// 800, // 最大宽度
// 600 // 最大高度
// );
//
// // 设置压缩后的富文本
// jcxxHse.setHse(compressedContent);
// }
// 设置压缩后的富文本
jcxxHse.setHse(compressedContent);
return jcxxHse;
}
......@@ -59,19 +62,22 @@ public class JcxxHseServiceImpl implements IJcxxHseService
public List<JcxxHse> selectJcxxHseList(JcxxHse jcxxHse)
{
List<JcxxHse> list = jcxxHseMapper.selectJcxxHseList(jcxxHse);
list.stream().map(entity -> {
// 压缩富文本中的图片,设置质量和最大尺寸
String compressedContent = RichTextProcessor.processRichText(
entity.getHse(), // 你的富文本字段
0.7f, // 质量 0.0-1.0
800, // 最大宽度
600 // 最大高度
);
// 设置压缩后的富文本
entity.setHse(compressedContent);
return entity;
}).collect(Collectors.toList());
// list.stream().map(entity -> {
// // 压缩富文本中的图片,设置质量和最大尺寸
// if(StringUtils.isNotEmpty(entity.getHse())){
// String compressedContent = RichTextProcessor.processRichText(
// entity.getHse(), // 你的富文本字段
// 0.7f, // 质量 0.0-1.0
// 800, // 最大宽度
// 600 // 最大高度
// );
//
// // 设置压缩后的富文本
// entity.setHse(compressedContent);
// }
//
// return entity;
// }).collect(Collectors.toList());
return list;
}
......
......@@ -37,48 +37,59 @@ public class JcxxJkzpServiceImpl implements IJcxxJkzpService
{
JcxxJkzp jcxxJkzp = jcxxJkzpMapper.selectJcxxJkzpById(id);
// 压缩富文本中的图片,设置质量和最大尺寸
String compressedContent = RichTextProcessor.processRichText(
jcxxJkzp.getZjkzz(), // 你的富文本字段
0.7f, // 质量 0.0-1.0
800, // 最大宽度
600 // 最大高度
);
// if(StringUtils.isNotEmpty(jcxxJkzp.getZjkzz())){
// // 压缩富文本中的图片,设置质量和最大尺寸
// String compressedContent = RichTextProcessor.processRichText(
// jcxxJkzp.getZjkzz(), // 你的富文本字段
// 0.7f, // 质量 0.0-1.0
// 800, // 最大宽度
// 600 // 最大高度
// );
//
// // 设置压缩后的富文本
// jcxxJkzp.setZjkzz(compressedContent);
// }
//
// if(StringUtils.isNotEmpty(jcxxJkzp.getClcb())){
// String clcb = RichTextProcessor.processRichText(
// jcxxJkzp.getClcb(), // 你的富文本字段
// 0.7f, // 质量 0.0-1.0
// 800, // 最大宽度
// 600 // 最大高度
// );
//
// // 设置压缩后的富文本
// jcxxJkzp.setClcb(clcb);
// }
//
//
// if(StringUtils.isNotEmpty(jcxxJkzp.getJlgh())){
//
// String jlgh = RichTextProcessor.processRichText(
// jcxxJkzp.getJlgh(), // 你的富文本字段
// 0.7f, // 质量 0.0-1.0
// 800, // 最大宽度
// 600 // 最大高度
// );
//
// // 设置压缩后的富文本
// jcxxJkzp.setJlgh(jlgh);
// }
//
//
//
// if(StringUtils.isNotEmpty(jcxxJkzp.getSyyq())){
// String syyq = RichTextProcessor.processRichText(
// jcxxJkzp.getSyyq(), // 你的富文本字段
// 0.7f, // 质量 0.0-1.0
// 800, // 最大宽度
// 600 // 最大高度
// );
//
// // 设置压缩后的富文本
// jcxxJkzp.setSyyq(syyq);
// }
// 设置压缩后的富文本
jcxxJkzp.setZjkzz(compressedContent);
String clcb = RichTextProcessor.processRichText(
jcxxJkzp.getClcb(), // 你的富文本字段
0.7f, // 质量 0.0-1.0
800, // 最大宽度
600 // 最大高度
);
// 设置压缩后的富文本
jcxxJkzp.setClcb(clcb);
String jlgh = RichTextProcessor.processRichText(
jcxxJkzp.getJlgh(), // 你的富文本字段
0.7f, // 质量 0.0-1.0
800, // 最大宽度
600 // 最大高度
);
// 设置压缩后的富文本
jcxxJkzp.setJlgh(jlgh);
String syyq = RichTextProcessor.processRichText(
jcxxJkzp.getSyyq(), // 你的富文本字段
0.7f, // 质量 0.0-1.0
800, // 最大宽度
600 // 最大高度
);
// 设置压缩后的富文本
jcxxJkzp.setSyyq(syyq);
return jcxxJkzp;
}
......@@ -92,51 +103,60 @@ public class JcxxJkzpServiceImpl implements IJcxxJkzpService
public List<JcxxJkzp> selectJcxxJkzpList(JcxxJkzp jcxxJkzp)
{
List<JcxxJkzp> list = jcxxJkzpMapper.selectJcxxJkzpList(jcxxJkzp);
list.stream().map(entity -> {
// 压缩富文本中的图片,设置质量和最大尺寸
String compressedContent = RichTextProcessor.processRichText(
entity.getZjkzz(), // 你的富文本字段
0.7f, // 质量 0.0-1.0
800, // 最大宽度
600 // 最大高度
);
// 设置压缩后的富文本
entity.setZjkzz(compressedContent);
String clcb = RichTextProcessor.processRichText(
entity.getClcb(), // 你的富文本字段
0.7f, // 质量 0.0-1.0
800, // 最大宽度
600 // 最大高度
);
// 设置压缩后的富文本
entity.setClcb(clcb);
String jlgh = RichTextProcessor.processRichText(
entity.getJlgh(), // 你的富文本字段
0.7f, // 质量 0.0-1.0
800, // 最大宽度
600 // 最大高度
);
// 设置压缩后的富文本
entity.setJlgh(jlgh);
String syyq = RichTextProcessor.processRichText(
entity.getSyyq(), // 你的富文本字段
0.7f, // 质量 0.0-1.0
800, // 最大宽度
600 // 最大高度
);
// 设置压缩后的富文本
entity.setSyyq(syyq);
return entity;
}).collect(Collectors.toList());
// list.stream().map(entity -> {
// if(StringUtils.isNotEmpty(entity.getZjkzz())){
// // 压缩富文本中的图片,设置质量和最大尺寸
// String compressedContent = RichTextProcessor.processRichText(
// entity.getZjkzz(), // 你的富文本字段
// 0.7f, // 质量 0.0-1.0
// 800, // 最大宽度
// 600 // 最大高度
// );
// // 设置压缩后的富文本
// entity.setZjkzz(compressedContent);
// }
//
// if(StringUtils.isNotEmpty(entity.getClcb())){
//
// String clcb = RichTextProcessor.processRichText(
// entity.getClcb(), // 你的富文本字段
// 0.7f, // 质量 0.0-1.0
// 800, // 最大宽度
// 600 // 最大高度
// );
//
// // 设置压缩后的富文本
// entity.setClcb(clcb);
// }
//
// if(StringUtils.isNotEmpty(entity.getJlgh())){
//
// String jlgh = RichTextProcessor.processRichText(
// entity.getJlgh(), // 你的富文本字段
// 0.7f, // 质量 0.0-1.0
// 800, // 最大宽度
// 600 // 最大高度
// );
//
// // 设置压缩后的富文本
// entity.setJlgh(jlgh);
// }
//
// if(StringUtils.isNotEmpty(entity.getSyyq())){
// String syyq = RichTextProcessor.processRichText(
// entity.getSyyq(), // 你的富文本字段
// 0.7f, // 质量 0.0-1.0
// 800, // 最大宽度
// 600 // 最大高度
// );
//
// // 设置压缩后的富文本
// entity.setSyyq(syyq);
// }
//
//
// return entity;
// }).collect(Collectors.toList());
return list;
}
......
......@@ -1253,7 +1253,6 @@ public class SjDjjcServiceImpl implements ISjDjjcService
SjDjjc sjDjjc1 = sjDjjcMapper.selectSjDjjcByJh(jh);
SjJygjGdsjgdcs sjJygjGdsjgdcs=new SjJygjGdsjgdcs();
sjJygjGdsjgdcs.setJh(jh);
List<SjJygjGdsjgdcs> sjJygjGdsjgdcsList = sjJygjGdsjgdcsMapper.selectSjJygjGdsjgdcsList(sjJygjGdsjgdcs);
if(sjDjjc1!=null){
if(sjDjjc1.getJkhzb()!=null && sjDjjc1.getJkzzb()!=null){
CommonParam param =new CommonParam();
......
......@@ -37,15 +37,18 @@ public class SjHseServiceImpl implements ISjHseService
{
SjHse sjHse = sjHseMapper.selectSjHseById(id);
// 压缩富文本中的图片,设置质量和最大尺寸
String compressedContent = RichTextProcessor.processRichText(
sjHse.getHse(), // 你的富文本字段
0.7f, // 质量 0.0-1.0
800, // 最大宽度
600 // 最大高度
);
// if(StringUtils.isNotEmpty(sjHse.getHse())){
// String compressedContent = RichTextProcessor.processRichText(
// sjHse.getHse(), // 你的富文本字段
// 0.7f, // 质量 0.0-1.0
// 800, // 最大宽度
// 600 // 最大高度
// );
//
// // 设置压缩后的富文本
// sjHse.setHse(compressedContent);
// }
// 设置压缩后的富文本
sjHse.setHse(compressedContent);
return sjHse;
}
......@@ -59,19 +62,22 @@ public class SjHseServiceImpl implements ISjHseService
public List<SjHse> selectSjHseList(SjHse sjHse)
{
List<SjHse> list = sjHseMapper.selectSjHseList(sjHse);
list.stream().map(entity -> {
// 压缩富文本中的图片,设置质量和最大尺寸
String compressedContent = RichTextProcessor.processRichText(
entity.getHse(), // 你的富文本字段
0.7f, // 质量 0.0-1.0
800, // 最大宽度
600 // 最大高度
);
// 设置压缩后的富文本
entity.setHse(compressedContent);
return entity;
}).collect(Collectors.toList());
// list.stream().map(entity -> {
// if(StringUtils.isNotEmpty(entity.getHse())){
// // 压缩富文本中的图片,设置质量和最大尺寸
// String compressedContent = RichTextProcessor.processRichText(
// entity.getHse(), // 你的富文本字段
// 0.7f, // 质量 0.0-1.0
// 800, // 最大宽度
// 600 // 最大高度
// );
//
// // 设置压缩后的富文本
// entity.setHse(compressedContent);
// }
//
// return entity;
// }).collect(Collectors.toList());
return list;
}
......
......@@ -36,48 +36,62 @@ public class SjJkzpServiceImpl implements ISjJkzpService
public SjJkzp selectSjJkzpById(Long id)
{
SjJkzp sjJkzp = sjJkzpMapper.selectSjJkzpById(id);
// 压缩富文本中的图片,设置质量和最大尺寸
String compressedContent = RichTextProcessor.processRichText(
sjJkzp.getZjkzz(), // 你的富文本字段
0.7f, // 质量 0.0-1.0
800, // 最大宽度
600 // 最大高度
);
// 设置压缩后的富文本
sjJkzp.setZjkzz(compressedContent);
String clcb = RichTextProcessor.processRichText(
sjJkzp.getClcb(), // 你的富文本字段
0.7f, // 质量 0.0-1.0
800, // 最大宽度
600 // 最大高度
);
// 设置压缩后的富文本
sjJkzp.setClcb(clcb);
String jlgh = RichTextProcessor.processRichText(
sjJkzp.getJlgh(), // 你的富文本字段
0.7f, // 质量 0.0-1.0
800, // 最大宽度
600 // 最大高度
);
// 设置压缩后的富文本
sjJkzp.setJlgh(jlgh);
String syyq = RichTextProcessor.processRichText(
sjJkzp.getSyyq(), // 你的富文本字段
0.7f, // 质量 0.0-1.0
800, // 最大宽度
600 // 最大高度
);
// 设置压缩后的富文本
sjJkzp.setSyyq(syyq);
// if(StringUtils.isNotEmpty(sjJkzp.getZjkzz())){
// // 压缩富文本中的图片,设置质量和最大尺寸
// String compressedContent = RichTextProcessor.processRichText(
// sjJkzp.getZjkzz(), // 你的富文本字段
// 0.7f, // 质量 0.0-1.0
// 800, // 最大宽度
// 600 // 最大高度
// );
//
// // 设置压缩后的富文本
// sjJkzp.setZjkzz(compressedContent);
// }
//
//
//
// if(StringUtils.isNotEmpty(sjJkzp.getClcb())){
// String clcb = RichTextProcessor.processRichText(
// sjJkzp.getClcb(), // 你的富文本字段
// 0.7f, // 质量 0.0-1.0
// 800, // 最大宽度
// 600 // 最大高度
// );
//
// // 设置压缩后的富文本
// sjJkzp.setClcb(clcb);
//
// }
// if(StringUtils.isNotEmpty(sjJkzp.getJlgh())){
// String jlgh = RichTextProcessor.processRichText(
// sjJkzp.getJlgh(), // 你的富文本字段
// 0.7f, // 质量 0.0-1.0
// 800, // 最大宽度
// 600 // 最大高度
// );
//
// // 设置压缩后的富文本
// sjJkzp.setJlgh(jlgh);
//
// }
//
//
//
//
// if(StringUtils.isNotEmpty(sjJkzp.getSyyq())){
// String syyq = RichTextProcessor.processRichText(
// sjJkzp.getSyyq(), // 你的富文本字段
// 0.7f, // 质量 0.0-1.0
// 800, // 最大宽度
// 600 // 最大高度
// );
//
// // 设置压缩后的富文本
// sjJkzp.setSyyq(syyq);
//
// }
return sjJkzp;
}
......@@ -91,51 +105,66 @@ public class SjJkzpServiceImpl implements ISjJkzpService
public List<SjJkzp> selectSjJkzpList(SjJkzp sjJkzp)
{
List<SjJkzp> list = sjJkzpMapper.selectSjJkzpList(sjJkzp);
list.stream().map(entity -> {
// 压缩富文本中的图片,设置质量和最大尺寸
String compressedContent = RichTextProcessor.processRichText(
entity.getZjkzz(), // 你的富文本字段
0.7f, // 质量 0.0-1.0
800, // 最大宽度
600 // 最大高度
);
// 设置压缩后的富文本
entity.setZjkzz(compressedContent);
String clcb = RichTextProcessor.processRichText(
entity.getClcb(), // 你的富文本字段
0.7f, // 质量 0.0-1.0
800, // 最大宽度
600 // 最大高度
);
// 设置压缩后的富文本
entity.setClcb(clcb);
String jlgh = RichTextProcessor.processRichText(
entity.getJlgh(), // 你的富文本字段
0.7f, // 质量 0.0-1.0
800, // 最大宽度
600 // 最大高度
);
// 设置压缩后的富文本
entity.setJlgh(jlgh);
String syyq = RichTextProcessor.processRichText(
entity.getSyyq(), // 你的富文本字段
0.7f, // 质量 0.0-1.0
800, // 最大宽度
600 // 最大高度
);
// 设置压缩后的富文本
entity.setSyyq(syyq);
return entity;
}).collect(Collectors.toList());
// list.stream().map(entity -> {
// // 压缩富文本中的图片,设置质量和最大尺寸
// if(StringUtils.isNotEmpty( entity.getZjkzz())){
// String compressedContent = RichTextProcessor.processRichText(
// entity.getZjkzz(), // 你的富文本字段
// 0.7f, // 质量 0.0-1.0
// 800, // 最大宽度
// 600 // 最大高度
// );
// // 设置压缩后的富文本
// entity.setZjkzz(compressedContent);
// }
//
//
//
//
// if(StringUtils.isNotEmpty( entity.getClcb())){
// String clcb = RichTextProcessor.processRichText(
// entity.getClcb(), // 你的富文本字段
// 0.7f, // 质量 0.0-1.0
// 800, // 最大宽度
// 600 // 最大高度
// );
//
// // 设置压缩后的富文本
// entity.setClcb(clcb);
// }
//
// if(StringUtils.isNotEmpty( entity.getJlgh())){
// String jlgh = RichTextProcessor.processRichText(
// entity.getJlgh(), // 你的富文本字段
// 0.7f, // 质量 0.0-1.0
// 800, // 最大宽度
// 600 // 最大高度
// );
//
// // 设置压缩后的富文本
// entity.setJlgh(jlgh);
// }
//
// if(StringUtils.isNotEmpty( entity.getSyyq())){
//
// String syyq = RichTextProcessor.processRichText(
// entity.getSyyq(), // 你的富文本字段
// 0.7f, // 质量 0.0-1.0
// 800, // 最大宽度
// 600 // 最大高度
// );
//
// // 设置压缩后的富文本
// entity.setSyyq(syyq);
// }
//
//
//
//
//
//
// return entity;
// }).collect(Collectors.toList());
return list;
}
......
......@@ -73,13 +73,13 @@ spring:
webStatFilter:
enabled: true
statViewServlet:
enabled: true
enabled: false
# 设置白名单,不填则允许所有访问
allow:
url-pattern: /druid/*
# 控制台管理用户名和密码
login-username: ruoyi
login-password: 123456
login-username: sdfesdsefesefe2dsser23a
login-password: sdfesdsefes@._efe2dsser23a
filter:
stat:
enabled: true
......
......@@ -57,9 +57,9 @@ spring:
servlet:
multipart:
# 单个文件大小
max-file-size: 10MB
max-file-size: 100MB
# 设置总上传的文件大小
max-request-size: 20MB
max-request-size: 200MB
# 服务模块
devtools:
restart:
......@@ -98,6 +98,31 @@ spring:
max-active: 8
# #连接池最大阻塞等待时间(使用负值表示没有限制)
max-wait: -1ms
activiti:
# database-schema-update 配置项可以设置流程引擎启动和关闭时数据库执行的策略。 database-schema-update 有以下四个值:
# -false:false 为默认值,设置为该值后,Activiti 在启动时,会对比数据库表中保存的版本,如果没有表或者版本不匹配时,将在启动时抛出异常。
# -true:设置为该值后,Activiti 会对数据库中所有的表进行更新,如果表不存在,则 Activiti 会自动创建。
# -create-drop:Activiti 启动时,会执行数据库表的创建操作,在 Activiti 关闭时,执行数据库表的删除操作。
# -drop-create:Activiti 启动时,执行数据库表的删除操作在 Activiti 关闭时,会执行数据库表的创建操作。
database-schema-update: true
# 开启历史库
# db-history-used 为 true 表示使用历史表,如果不配置,则工程启动后可以检查数据库,只建立了 17 张表,历史表没有建立,则流程图及运行节点无法展示
db-history-used: true
# history-level 对于历史数据,保存到何种粒度,Activiti 提供了 history-level 属性对其进行配置。history-level 属性有点像 log4j 的日志输出级别,该属性有以下四个值:
# -none:不保存任何的历史数据,因此,在流程执行过程中,这是最高效的。
# -activity:级别高于 none,保存流程实例与流程行为,其他数据不保存。
# -audit:除 activity 级别会保存的数据外,还会保存全部的流程任务及其属性。audit 为 history 的默认值。
# -full:保存历史数据的最高级别,除了会保存 audit 级别的数据外,还会保存其他全部流程相关的细节数据,包括一些流程参数等。性能较差,
# 记录所有实例和变量细节变化,最完整的历史记录,如果需要日后跟踪详细可以开启 full(一般不建议开启)
history-level: full
# 校验流程文件,默认校验 resources 下的 processes 文件夹里的流程文件
check-process-definitions: false
# 关闭 SpringAutoDeployment,默认值:default,如果不关闭,每次重新启动项目的时候,总是会在 ACT_RE_DEPLOYMENT 自动创建
# 一个名为 SpringAutoDeployment 工作流记录。但是在开发阶段,需要经常重启项目,久而久之就会导致 ACT_RE_DEPLOYMENT 的记录越来越大了
# default: 意思是默认的 AutoDeploymentStrategy 实现,会把所有的资源 分组到一个单独的部署,这个实现和以前使用的实现是一样的
# fail-on-no-process:FailOnNoProcessAutoDeploymentStrategy
# never-fail:NeverFailAutoDeploymentStrategy 关闭
deployment-mode: never-fail
# token配置
token:
......@@ -175,4 +200,31 @@ app:
#应用登出地址
logout_url: /logout
#前端登录地址
web_url: http://localhost/login?redirect=/index
\ No newline at end of file
web_url: http://localhost/login?redirect=/index
activiti:
# 整合模型相关信息配置
model:
# 导出模型时是否导出流程 svg 图片, 为 true 时流程文件和流程图片压缩 zip 导出
export-svg: true
# 整合部署相关信息配置
deployment:
# 是否过滤重复, 默认为 false, 防止资源没有发生变化而再次执行部署方法产生的重复部署
# - false: 每次部署 ACT_RE_DEPLOYMENT 都会新增一条部署信息, 版本号是 1, ACT_RE_PROCDEF 会根据部署时的模型文件数量新增对应 n 条数据, 同时版本 +1
# - true: 部署时会判断部署名称和流程定义文件与数据库中是否相同:
# -- 名称相同, 流程定义文件内容相同, 数据过滤不做处理
# -- 名称相同, 流程定义文件内容不同, ACT_RE_DEPLOYMENT 表新增一条记录, 版本号 +1 , ACT_RE_PROCDEF 表不会新增数据
# -- 名称不同, 流程定义文件内容相同, ACT_RE_DEPLOYMENT 表新增一条记录, 版本号是 1, ACT_RE_PROCDEF 会根据部署时的模型文件数量新增对应 n 条数据, 同时版本 +1
# -- 名称不同, 流程定义文件内容不同, ACT_RE_DEPLOYMENT 表新增一条记录, 版本号是 1, ACT_RE_PROCDEF 会根据部署时的模型文件数量新增对应 n 条数据, 同时版本也是 1
auto-deployment-enabled: true
# 是否开启项目清单配置, 用来测试 ACT_RE_PROCDEF 表 APP_VERSION_ 字段和 ACT_RE_DEPLOYMENT 表 PROJECT_RELEASE_VERSION_ 字段
# 部署相同流程时需要搭配 auto-deployment-enabled = true 一起使用, 否则模型部署和上传部署会冲突报错 ACT_RE_PROCDEF: UNIQUE KEY `ACT_UNIQ_PROCDEF`
# **注意** 如果设置了项目资源清单版本, 则 isAutoDeploymentEnabled 的判断规则会失效, 判断逻辑改为对比数据库中项目资源清单版本号:
# - 版本号相同则数据过滤不做处理
# - 版本号不同则 ACT_RE_DEPLOYMENT 表新增一条记录, 版本号 +1, ACT_RE_PROCDEF 表会根据部署时的模型文件数量新增对应 n 条数据, 同时版本 +1
# {@link org.activiti.engine.impl.cmd.DeployCmd#deploymentsDiffer(DeploymentEntity, DeploymentEntity)}
# !deployment.getProjectReleaseVersion().equals(saved.getProjectReleaseVersion());
project-manifest-enabled: true
\ No newline at end of file
......@@ -446,6 +446,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</trim>
where id = #{id}
</update>
<update id="updateSjDjjcLcZjy">
update sj_djjc set zjyinstance_id = null , zjyprocess_status='未提交' ,zjyrefuse_content=null,zjytype=null, zjyapply_user=null,zjyapply_time =null where id = #{id}
</update>
<update id="updateSjDjjcLc">
update sj_djjc set instance_id = null , process_status='未提交' ,refuse_content=null,type=null, apply_user=null,apply_time =null where id = #{id}
</update>
<delete id="deleteSjDjjcById" parameterType="Long">
delete from sj_djjc where id = #{id}
......@@ -608,5 +614,21 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
DELETE FROM sj_fdsgcs_zjfxzt WHERE jh LIKE CONCAT('%', #{jh}, '%');
</delete>
<delete id="deleteLc">
delete from act_hi_actinst where PROC_INST_ID_ = #{instanceId};
delete from act_hi_attachment where PROC_INST_ID_= #{instanceId};
delete from act_hi_comment where PROC_INST_ID_= #{instanceId};
delete from act_hi_detail where PROC_INST_ID_= #{instanceId};
delete from act_hi_identitylink where PROC_INST_ID_= #{instanceId};
delete from act_hi_procinst where PROC_INST_ID_= #{instanceId};
delete from act_hi_taskinst where PROC_INST_ID_= #{instanceId};
delete from act_hi_varinst where PROC_INST_ID_= #{instanceId};
delete from act_ru_event_subscr where PROC_INST_ID_= #{instanceId};
delete from act_ru_identitylink where PROC_INST_ID_= #{instanceId};
delete from act_ru_task where PROC_INST_ID_= #{instanceId};
delete from act_ru_variable where PROC_INST_ID_= #{instanceId};
delete from act_ru_execution where PROC_INST_ID_= #{instanceId};
delete from biz_todo_item where instance_id= #{instanceId};
</delete>
</mapper>
\ No newline at end of file
......@@ -20,11 +20,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<result property="mzxs" column="mzxs" />
<result property="dql" column="dql" />
<result property="sxnd" column="sxnd" />
<result property="hthpss" column="hthpss" />
<result property="hthpnb" column="hthpnb" />
<result property="mbt" column="mbt" />
</resultMap>
<sql id="selectSjFdsgcsZjyFdxnbVo">
select id, jh, kc, jd, md, msldnd, apilsl, apinb, jql, ph, hsl, zgh, mzxs, dql, sxnd,
CAST(TRIM(SUBSTRING_INDEX(jd, '~', 1)) AS DECIMAL(10, 2)) AS first_number from sj_fdsgcs_zjy_fdxnb
CAST(TRIM(SUBSTRING_INDEX(jd, '~', 1)) AS DECIMAL(10, 2)) AS first_number, hthpss, hthpnb, mbt from sj_fdsgcs_zjy_fdxnb
</sql>
<select id="selectSjFdsgcsZjyFdxnbList" parameterType="SjFdsgcsZjyFdxnb" resultMap="SjFdsgcsZjyFdxnbResult">
......@@ -70,6 +73,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="mzxs != null">mzxs,</if>
<if test="dql != null">dql,</if>
<if test="sxnd != null">sxnd,</if>
<if test="hthpss != null">hthpss,</if>
<if test="hthpnb != null">hthpnb,</if>
<if test="mbt != null">mbt,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="jh != null">#{jh},</if>
......@@ -86,11 +92,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="mzxs != null">#{mzxs},</if>
<if test="dql != null">#{dql},</if>
<if test="sxnd != null">#{sxnd},</if>
<if test="hthpss != null">#{hthpss},</if>
<if test="hthpnb != null">#{hthpnb},</if>
<if test="mbt != null">#{mbt},</if>
</trim>
</insert>
<insert id="insertSjFdsgcsZjyFdxnbBatch">
INSERT INTO sj_fdsgcs_zjy_fdxnb
(jh, jd, kc, md, msldnd, apilsl, apinb, jql, ph, hsl, zgh, mzxs, dql, sxnd)
(jh, jd, kc, md, msldnd, apilsl, apinb, jql, ph, hsl, zgh, mzxs, dql, sxnd, hthpss, hthpnb, mbt)
VALUES
<foreach collection="list" item="item" separator=",">
(
......@@ -107,7 +116,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
#{item.zgh},
#{item.mzxs},
#{item.dql},
#{item.sxnd}
#{item.sxnd},
#{item.hthpss},
#{item.hthpnb},
#{item.mbt}
)
</foreach>
</insert>
......@@ -146,6 +158,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="mzxs != null">mzxs = #{mzxs},</if>
<if test="dql != null">dql = #{dql},</if>
<if test="sxnd != null">sxnd = #{sxnd},</if>
<if test="hthpss != null">hthpss = #{hthpss},</if>
<if test="hthpnb != null">hthpnb = #{hthpnb},</if>
<if test="mbt != null">mbt = #{mbt},</if>
</trim>
where jh = #{jh} and kc = #{kc} and jd = #{jd}
</update>
......
......@@ -25,11 +25,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<result property="updateBy" column="update_by" />
<result property="updateTime" column="update_time" />
<result property="firstNumber" column="first_number" />
<result property="hthpss" column="hthpss" />
<result property="hthpnb" column="hthpnb" />
<result property="mbt" column="mbt" />
</resultMap>
<sql id="selectSjZjyFdxnbVo">
select id, jh, jd, md, msldnd, apilsl, apinb, jql, ph, hsl, zgh, mzxs, dql, sxnd, bz, created_by, created_time, update_by, update_time,
CAST(TRIM(SUBSTRING_INDEX(jd, '~', 1)) AS DECIMAL(10, 2)) AS first_number from sj_zjy_fdxnb
CAST(TRIM(SUBSTRING_INDEX(jd, '~', 1)) AS DECIMAL(10, 2)) AS first_number, hthpss, hthpnb, mbt from sj_zjy_fdxnb
</sql>
<select id="selectSjZjyFdxnbList" parameterType="SjZjyFdxnb" resultMap="SjZjyFdxnbResult">
......@@ -81,6 +84,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="createdTime != null">created_time,</if>
<if test="updateBy != null">update_by,</if>
<if test="updateTime != null">update_time,</if>
<if test="hthpss != null">hthpss,</if>
<if test="hthpnb != null">hthpnb,</if>
<if test="mbt != null">mbt,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="jh != null">#{jh},</if>
......@@ -101,12 +107,15 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="createdTime != null">#{createdTime},</if>
<if test="updateBy != null">#{updateBy},</if>
<if test="updateTime != null">#{updateTime},</if>
<if test="hthpss != null">#{hthpss},</if>
<if test="hthpnb != null">#{hthpnb},</if>
<if test="mbt != null">#{mbt},</if>
</trim>
</insert>
<insert id="insertSjZjyFdxnbBatch">
INSERT INTO sj_zjy_fdxnb
(jh, jd, md, msldnd, apilsl, apinb, jql, ph, hsl, zgh, mzxs, dql, sxnd, bz)
(jh, jd, md, msldnd, apilsl, apinb, jql, ph, hsl, zgh, mzxs, dql, sxnd, bz, hthpss, hthpnb, mbt)
VALUES
<foreach collection="list" item="item" separator=",">
(
......@@ -123,7 +132,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
#{item.mzxs},
#{item.dql},
#{item.sxnd},
#{item.bz}
#{item.bz},
#{item.hthpss},
#{item.hthpnb},
#{item.mbt}
)
</foreach>
......@@ -150,6 +162,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="createdTime != null">created_time = #{createdTime},</if>
<if test="updateBy != null">update_by = #{updateBy},</if>
<if test="updateTime != null">update_time = #{updateTime},</if>
<if test="hthpss != null">hthpss = #{hthpss},</if>
<if test="hthpnb != null">hthpnb = #{hthpnb},</if>
<if test="mbt != null">mbt = #{mbt},</if>
</trim>
where id = #{id}
</update>
......
......@@ -1170,10 +1170,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<select id="getLjjwList2" resultType="com.zjsgfa.project.zt.domain.Ljjw">
select * from (
SELECT a.*, round(power(power(a.jkhzb - ${jkhzb}
, 2) + power(a.jkzzb - ${jkzzb}, 2), 0.5), 2) as jkjl
, 2) + power(a.jkzzb - ${jkzzb}, 2), 0.5), 2) as jkjl, fm.zjbh dh
FROM JSBA a
left join jsaa b on a.jh=b.jh
left join jsfm fm
on a.jh = fm.jh
WHERE 1 = 1
and a.jh not like '%侧%'
and TO_CHAR(b.wjrq, 'YYYY') between #{wjsjks} and #{wjsjjs}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment