|
|
@@ -55,7 +55,7 @@ public class FlowModelDaoImpl extends BaseDao implements FlowModelDao {
|
|
|
.append("e.v_data_name as n_cancel_can_read_name, f.v_type_name, ")
|
|
|
.append("g.v_data_name as n_control_name, h.v_data_name as n_is_sms_name, ")
|
|
|
.append("i.v_data_name as n_is_email_name, j.v_data_name as n_is_message_name, ")
|
|
|
- .append("k.groupname, l.v_data_name,t.model_picture, t.abbreviation ")
|
|
|
+ .append("k.groupname, l.v_data_name,t.model_picture, t.abbreviation, t.v_precautions ")
|
|
|
.append("from bpm_flow_model t ")
|
|
|
.append("left join bpm_data a on t.n_has_office=a.n_value and a.v_data_field='n_has_office' and a.v_data_table='flow_model' ")
|
|
|
.append("left join t_user b on t.v_creator=b.universalid ")
|
|
|
@@ -106,9 +106,9 @@ public class FlowModelDaoImpl extends BaseDao implements FlowModelDao {
|
|
|
.append("n_has_office, n_is_cancel, n_cancel_can_read, ")
|
|
|
.append("n_end_cancel, v_allow_cancels, n_is_sms, ").append("n_is_email, n_is_message, n_is_graph, ")
|
|
|
.append("n_is_view_limit, n_limit_use_type, v_limit_use, ")
|
|
|
- .append("n_limit_position_type, v_limit_position_dept,n_is_custom_print,n_statistics,v_attachment_template,n_allow_skip_tache,abbreviation")
|
|
|
+ .append("n_limit_position_type, v_limit_position_dept,n_is_custom_print,n_statistics,v_attachment_template,n_allow_skip_tache,abbreviation,v_precautions")
|
|
|
.append(") values (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ")
|
|
|
- .append("?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ? )");
|
|
|
+ .append("?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ? )");
|
|
|
List<Object> args = new ArrayList<Object>();
|
|
|
args.add(flowModel.getModelId());
|
|
|
args.add(flowModel.getModelName());
|
|
|
@@ -140,13 +140,14 @@ public class FlowModelDaoImpl extends BaseDao implements FlowModelDao {
|
|
|
args.add(flowModel.getAttachmentTemplate());
|
|
|
args.add(flowModel.getAllowSkipTache());
|
|
|
args.add(flowModel.getAbbreviation());
|
|
|
+ args.add(flowModel.getPrecautions());
|
|
|
return jdbcTemplate.update(sql.toString(), args.toArray());
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
public int editFlowModel(FlowModel flowModel) {
|
|
|
StringBuffer sql = new StringBuffer("update bpm_flow_model set ")
|
|
|
- .append("v_model_name=?, l_type_id=?, v_remark=?, ")
|
|
|
+ .append("v_model_name=?, l_type_id=?, v_remark=?, v_precautions=?, ")
|
|
|
.append("n_has_office=?, n_is_cancel=?, n_end_cancel=?, ")
|
|
|
.append("n_control=?, n_control_url=?, n_cancel_can_read=?, v_allow_cancels=?, ")
|
|
|
.append("n_is_email=?, n_is_message=?, n_is_sms=?, ")
|
|
|
@@ -156,6 +157,7 @@ public class FlowModelDaoImpl extends BaseDao implements FlowModelDao {
|
|
|
args.add(flowModel.getModelName());
|
|
|
args.add(flowModel.getTypeId().getTypeId());
|
|
|
args.add(flowModel.getRemark());
|
|
|
+ args.add(flowModel.getPrecautions());
|
|
|
args.add(flowModel.getHasOffice().getValue());
|
|
|
args.add(flowModel.getIsCancel().getValue());
|
|
|
args.add(flowModel.getEndCancel().getValue());
|
|
|
@@ -892,7 +894,7 @@ public class FlowModelDaoImpl extends BaseDao implements FlowModelDao {
|
|
|
.append(" t.n_has_office, t.n_end_cancel, t.v_creator, t.v_remark, t.v_dept, t.n_control, t.n_control_url,t.n_is_default,")
|
|
|
.append(" t.l_form_id, t.v_limit_position_dept, t.v_allow_cancels, t.n_is_graph, t.n_is_view_limit, t.n_cancel_can_read,")
|
|
|
.append(" t.n_is_sms, t.n_is_email, t.n_is_message, t.n_limit_use_type, t.v_limit_use, t.n_limit_position_type,t.n_is_custom_print,")
|
|
|
- .append(" t.n_statistics, t.v_attachment_template,t.n_allow_skip_tache ")
|
|
|
+ .append(" t.n_statistics, t.v_attachment_template,t.n_allow_skip_tache, t.v_precautions ")
|
|
|
.append(" from bpm_form_info f")
|
|
|
.append(" left join bpm_flow_model t on f.l_model_id = t.l_model_id").append(" where f.l_form_id=?");
|
|
|
List<Object> args = new ArrayList<Object>();
|
|
|
@@ -915,6 +917,7 @@ public class FlowModelDaoImpl extends BaseDao implements FlowModelDao {
|
|
|
flowModel.setAllowCancels(rs.getString("v_allow_cancels"));
|
|
|
flowModel.getIsSms().setValue(rs.getString("n_is_sms"));
|
|
|
flowModel.setAllowSkipTache(rs.getString("n_allow_skip_tache"));
|
|
|
+ flowModel.setPrecautions(rs.getString("v_precautions"));
|
|
|
return flowModel;
|
|
|
}
|
|
|
};
|