kgdxpr 2 years ago
commit f0f8ab0e30

@ -858,7 +858,13 @@ public class CollectController extends Controller {
@IsNumericInterface({"job_id"})
@EmptyInterface({"deadline_time"})
public void extensionJob(int job_id, String deadline_time) throws ParseException {
cm.extensionJob(job_id, deadline_time);
//操作人员
String person_id = SessionKit.get(getRequest(), getResponse(), "person_id");
//根据人员ID获取人员所在的单位ID
LoginPersonModel personModel = new LoginPersonModel();
Record rs = personModel.getLoginInfoByPersonId(person_id);
String bureau_id = rs.get("bureau_id");
cm.extensionJob(job_id, deadline_time, bureau_id);
Map<String, Object> map = new HashMap<>();
map.put("success", true);
map.put("message", "保存成功!");

@ -1328,10 +1328,10 @@ public class CollectModel {
*
* @param job_id
*/
public void extensionJob(int job_id, String deadline_time) throws ParseException {
String sql = "update t_collect_job set deadline_time=? where job_id=?";
public void extensionJob(int job_id, String deadline_time, String bureau_id) throws ParseException {
String sql = "update t_collect_job_target set deadline_time=? where job_id=? and bureau_id=?";
Date date = dateFormat.parse(deadline_time);
Db.update(sql, date, job_id);
Db.update(sql, date, job_id, bureau_id);
}
/**

Loading…
Cancel
Save